package deng.camel.examples;

import java.util.concurrent.CountDownLatch;

import deng.camel.core.CamelRide;

public class TimerDemo extends CamelRide {
			
	public static void main(String[] args) {
		new TimerDemo().start();
	}
	
	public TimerDemo() {
		logger.info("Setting shutdownLatch to 5.");
		setShutdownLatch(new CountDownLatch(5));
	}
	
	@Override
	public void configure() {
        from("timer:demoTimer").process(getShutdownLatchProcessor());
    }

}